package com.j1ay.forum.service;

import com.j1ay.forum.model.dto.params.AnswerParam;
import com.j1ay.forum.model.pojo.vo.Result;

/**
 * @Author J1ay
 * @Date 2021/12/17 16:04
 * @Description
 */

public interface AnswerService {

    /**
     * 根据问题id查看回答列表
     * @param questionId
     * @return
     */
    Result findAnswersById(Long questionId);

    /**
     * 回复问题
     * @param answerParam
     * @return
     */
    Result replyForQuestion(AnswerParam answerParam);


    Result deleteAnswer(Long id);

    Result getUserAnswer(String username);

    /**
     * 点赞该回答
     * @param answerId
     * @return
     */
    Result toPraiseAnswer(Long answerId);
}
